﻿#region Using directives

using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

using BesAsm.MasterData.Entities;
using BesAsm.MasterData.Data;

#endregion

namespace BesAsm.MasterData.Data.Bases
{	
	///<summary>
	/// This class is the base class for any <see cref="ParkingTargetProviderBase"/> implementation.
	/// It exposes CRUD methods as well as selecting on index, foreign keys and custom stored procedures.
	///</summary>
	public abstract partial class ParkingTargetProviderBaseCore : EntityProviderBase<BesAsm.MasterData.Entities.ParkingTarget, BesAsm.MasterData.Entities.ParkingTargetKey>
	{		
		#region Get from Many To Many Relationship Functions
		#endregion	
		
		#region Delete Methods

		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to delete.</param>
		/// <returns>Returns true if operation suceeded.</returns>
		public override bool Delete(TransactionManager transactionManager, BesAsm.MasterData.Entities.ParkingTargetKey key)
		{
			return Delete(transactionManager, key.ParkingTargetId);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="_parkingTargetId">Primary key. Parking target ID. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public bool Delete(System.Int32 _parkingTargetId)
		{
			return Delete(null, _parkingTargetId);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_parkingTargetId">Primary key. Parking target ID. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public abstract bool Delete(TransactionManager transactionManager, System.Int32 _parkingTargetId);		
		
		#endregion Delete Methods
		
		#region Get By Foreign Key Functions
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_DSCS key.
		///		FK_PARKING_TARGETS_DSCS Description: 
		/// </summary>
		/// <param name="_dscId">Carried over from DSCS</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByDscId(System.Int32? _dscId)
		{
			int count = -1;
			return GetByDscId(_dscId, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_DSCS key.
		///		FK_PARKING_TARGETS_DSCS Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_dscId">Carried over from DSCS</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		/// <remarks></remarks>
		public TList<ParkingTarget> GetByDscId(TransactionManager transactionManager, System.Int32? _dscId)
		{
			int count = -1;
			return GetByDscId(transactionManager, _dscId, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_DSCS key.
		///		FK_PARKING_TARGETS_DSCS Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_dscId">Carried over from DSCS</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByDscId(TransactionManager transactionManager, System.Int32? _dscId, int start, int pageLength)
		{
			int count = -1;
			return GetByDscId(transactionManager, _dscId, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_DSCS key.
		///		fkParkingTargetsDscs Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_dscId">Carried over from DSCS</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByDscId(System.Int32? _dscId, int start, int pageLength)
		{
			int count =  -1;
			return GetByDscId(null, _dscId, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_DSCS key.
		///		fkParkingTargetsDscs Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_dscId">Carried over from DSCS</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByDscId(System.Int32? _dscId, int start, int pageLength,out int count)
		{
			return GetByDscId(null, _dscId, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_DSCS key.
		///		FK_PARKING_TARGETS_DSCS Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_dscId">Carried over from DSCS</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public abstract TList<ParkingTarget> GetByDscId(TransactionManager transactionManager, System.Int32? _dscId, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_CONSTRUCTED_STATUSES key.
		///		FK_PARKING_TARGETS_IC_TARGET_CONSTRUCTED_STATUSES Description: 
		/// </summary>
		/// <param name="_constructedStatus">Foreign key to IC_TARGET_CONSTRUCTED_STATUSES</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByConstructedStatus(System.Int32? _constructedStatus)
		{
			int count = -1;
			return GetByConstructedStatus(_constructedStatus, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_CONSTRUCTED_STATUSES key.
		///		FK_PARKING_TARGETS_IC_TARGET_CONSTRUCTED_STATUSES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_constructedStatus">Foreign key to IC_TARGET_CONSTRUCTED_STATUSES</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		/// <remarks></remarks>
		public TList<ParkingTarget> GetByConstructedStatus(TransactionManager transactionManager, System.Int32? _constructedStatus)
		{
			int count = -1;
			return GetByConstructedStatus(transactionManager, _constructedStatus, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_CONSTRUCTED_STATUSES key.
		///		FK_PARKING_TARGETS_IC_TARGET_CONSTRUCTED_STATUSES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_constructedStatus">Foreign key to IC_TARGET_CONSTRUCTED_STATUSES</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByConstructedStatus(TransactionManager transactionManager, System.Int32? _constructedStatus, int start, int pageLength)
		{
			int count = -1;
			return GetByConstructedStatus(transactionManager, _constructedStatus, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_CONSTRUCTED_STATUSES key.
		///		fkParkingTargetsIcTargetConstructedStatuses Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_constructedStatus">Foreign key to IC_TARGET_CONSTRUCTED_STATUSES</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByConstructedStatus(System.Int32? _constructedStatus, int start, int pageLength)
		{
			int count =  -1;
			return GetByConstructedStatus(null, _constructedStatus, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_CONSTRUCTED_STATUSES key.
		///		fkParkingTargetsIcTargetConstructedStatuses Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_constructedStatus">Foreign key to IC_TARGET_CONSTRUCTED_STATUSES</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByConstructedStatus(System.Int32? _constructedStatus, int start, int pageLength,out int count)
		{
			return GetByConstructedStatus(null, _constructedStatus, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_CONSTRUCTED_STATUSES key.
		///		FK_PARKING_TARGETS_IC_TARGET_CONSTRUCTED_STATUSES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_constructedStatus">Foreign key to IC_TARGET_CONSTRUCTED_STATUSES</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public abstract TList<ParkingTarget> GetByConstructedStatus(TransactionManager transactionManager, System.Int32? _constructedStatus, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_DIFFICULTIES key.
		///		FK_PARKING_TARGETS_IC_TARGET_DIFFICULTIES Description: 
		/// </summary>
		/// <param name="_difficulty">According to field survey, the parking control in question would be. Foreign key to IC_TARGET_DIFFICULTIES.</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByDifficulty(System.Int32? _difficulty)
		{
			int count = -1;
			return GetByDifficulty(_difficulty, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_DIFFICULTIES key.
		///		FK_PARKING_TARGETS_IC_TARGET_DIFFICULTIES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_difficulty">According to field survey, the parking control in question would be. Foreign key to IC_TARGET_DIFFICULTIES.</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		/// <remarks></remarks>
		public TList<ParkingTarget> GetByDifficulty(TransactionManager transactionManager, System.Int32? _difficulty)
		{
			int count = -1;
			return GetByDifficulty(transactionManager, _difficulty, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_DIFFICULTIES key.
		///		FK_PARKING_TARGETS_IC_TARGET_DIFFICULTIES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_difficulty">According to field survey, the parking control in question would be. Foreign key to IC_TARGET_DIFFICULTIES.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByDifficulty(TransactionManager transactionManager, System.Int32? _difficulty, int start, int pageLength)
		{
			int count = -1;
			return GetByDifficulty(transactionManager, _difficulty, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_DIFFICULTIES key.
		///		fkParkingTargetsIcTargetDifficulties Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_difficulty">According to field survey, the parking control in question would be. Foreign key to IC_TARGET_DIFFICULTIES.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByDifficulty(System.Int32? _difficulty, int start, int pageLength)
		{
			int count =  -1;
			return GetByDifficulty(null, _difficulty, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_DIFFICULTIES key.
		///		fkParkingTargetsIcTargetDifficulties Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_difficulty">According to field survey, the parking control in question would be. Foreign key to IC_TARGET_DIFFICULTIES.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByDifficulty(System.Int32? _difficulty, int start, int pageLength,out int count)
		{
			return GetByDifficulty(null, _difficulty, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_IC_TARGET_DIFFICULTIES key.
		///		FK_PARKING_TARGETS_IC_TARGET_DIFFICULTIES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_difficulty">According to field survey, the parking control in question would be. Foreign key to IC_TARGET_DIFFICULTIES.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public abstract TList<ParkingTarget> GetByDifficulty(TransactionManager transactionManager, System.Int32? _difficulty, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES key.
		///		FK_PARKING_TARGETS_NODES Description: 
		/// </summary>
		/// <param name="_nodeId">The actual node to be used for connecting runoff from the control.  If the parking area has inlets, this is equal to node_id_dsc; otherwise, this is equal to node_id_ssc</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeId(System.Int32? _nodeId)
		{
			int count = -1;
			return GetByNodeId(_nodeId, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES key.
		///		FK_PARKING_TARGETS_NODES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_nodeId">The actual node to be used for connecting runoff from the control.  If the parking area has inlets, this is equal to node_id_dsc; otherwise, this is equal to node_id_ssc</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		/// <remarks></remarks>
		public TList<ParkingTarget> GetByNodeId(TransactionManager transactionManager, System.Int32? _nodeId)
		{
			int count = -1;
			return GetByNodeId(transactionManager, _nodeId, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES key.
		///		FK_PARKING_TARGETS_NODES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_nodeId">The actual node to be used for connecting runoff from the control.  If the parking area has inlets, this is equal to node_id_dsc; otherwise, this is equal to node_id_ssc</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeId(TransactionManager transactionManager, System.Int32? _nodeId, int start, int pageLength)
		{
			int count = -1;
			return GetByNodeId(transactionManager, _nodeId, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES key.
		///		fkParkingTargetsNodes Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_nodeId">The actual node to be used for connecting runoff from the control.  If the parking area has inlets, this is equal to node_id_dsc; otherwise, this is equal to node_id_ssc</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeId(System.Int32? _nodeId, int start, int pageLength)
		{
			int count =  -1;
			return GetByNodeId(null, _nodeId, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES key.
		///		fkParkingTargetsNodes Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_nodeId">The actual node to be used for connecting runoff from the control.  If the parking area has inlets, this is equal to node_id_dsc; otherwise, this is equal to node_id_ssc</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeId(System.Int32? _nodeId, int start, int pageLength,out int count)
		{
			return GetByNodeId(null, _nodeId, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES key.
		///		FK_PARKING_TARGETS_NODES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_nodeId">The actual node to be used for connecting runoff from the control.  If the parking area has inlets, this is equal to node_id_dsc; otherwise, this is equal to node_id_ssc</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public abstract TList<ParkingTarget> GetByNodeId(TransactionManager transactionManager, System.Int32? _nodeId, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_DSC key.
		///		FK_PARKING_TARGETS_NODES_DSC Description: 
		/// </summary>
		/// <param name="_nodeIdDsc">The upstream node of the link to which the DSC involved with the parking inflow control is connected</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeIdDsc(System.Int32? _nodeIdDsc)
		{
			int count = -1;
			return GetByNodeIdDsc(_nodeIdDsc, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_DSC key.
		///		FK_PARKING_TARGETS_NODES_DSC Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_nodeIdDsc">The upstream node of the link to which the DSC involved with the parking inflow control is connected</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		/// <remarks></remarks>
		public TList<ParkingTarget> GetByNodeIdDsc(TransactionManager transactionManager, System.Int32? _nodeIdDsc)
		{
			int count = -1;
			return GetByNodeIdDsc(transactionManager, _nodeIdDsc, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_DSC key.
		///		FK_PARKING_TARGETS_NODES_DSC Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_nodeIdDsc">The upstream node of the link to which the DSC involved with the parking inflow control is connected</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeIdDsc(TransactionManager transactionManager, System.Int32? _nodeIdDsc, int start, int pageLength)
		{
			int count = -1;
			return GetByNodeIdDsc(transactionManager, _nodeIdDsc, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_DSC key.
		///		fkParkingTargetsNodesDsc Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_nodeIdDsc">The upstream node of the link to which the DSC involved with the parking inflow control is connected</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeIdDsc(System.Int32? _nodeIdDsc, int start, int pageLength)
		{
			int count =  -1;
			return GetByNodeIdDsc(null, _nodeIdDsc, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_DSC key.
		///		fkParkingTargetsNodesDsc Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_nodeIdDsc">The upstream node of the link to which the DSC involved with the parking inflow control is connected</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeIdDsc(System.Int32? _nodeIdDsc, int start, int pageLength,out int count)
		{
			return GetByNodeIdDsc(null, _nodeIdDsc, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_DSC key.
		///		FK_PARKING_TARGETS_NODES_DSC Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_nodeIdDsc">The upstream node of the link to which the DSC involved with the parking inflow control is connected</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public abstract TList<ParkingTarget> GetByNodeIdDsc(TransactionManager transactionManager, System.Int32? _nodeIdDsc, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_SSC key.
		///		FK_PARKING_TARGETS_NODES_SSC Description: 
		/// </summary>
		/// <param name="_nodeIdSsc">Draining node of the overlying SSC in which the parking control lies</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeIdSsc(System.Int32? _nodeIdSsc)
		{
			int count = -1;
			return GetByNodeIdSsc(_nodeIdSsc, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_SSC key.
		///		FK_PARKING_TARGETS_NODES_SSC Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_nodeIdSsc">Draining node of the overlying SSC in which the parking control lies</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		/// <remarks></remarks>
		public TList<ParkingTarget> GetByNodeIdSsc(TransactionManager transactionManager, System.Int32? _nodeIdSsc)
		{
			int count = -1;
			return GetByNodeIdSsc(transactionManager, _nodeIdSsc, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_SSC key.
		///		FK_PARKING_TARGETS_NODES_SSC Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_nodeIdSsc">Draining node of the overlying SSC in which the parking control lies</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeIdSsc(TransactionManager transactionManager, System.Int32? _nodeIdSsc, int start, int pageLength)
		{
			int count = -1;
			return GetByNodeIdSsc(transactionManager, _nodeIdSsc, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_SSC key.
		///		fkParkingTargetsNodesSsc Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_nodeIdSsc">Draining node of the overlying SSC in which the parking control lies</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeIdSsc(System.Int32? _nodeIdSsc, int start, int pageLength)
		{
			int count =  -1;
			return GetByNodeIdSsc(null, _nodeIdSsc, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_SSC key.
		///		fkParkingTargetsNodesSsc Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_nodeIdSsc">Draining node of the overlying SSC in which the parking control lies</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByNodeIdSsc(System.Int32? _nodeIdSsc, int start, int pageLength,out int count)
		{
			return GetByNodeIdSsc(null, _nodeIdSsc, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_NODES_SSC key.
		///		FK_PARKING_TARGETS_NODES_SSC Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_nodeIdSsc">Draining node of the overlying SSC in which the parking control lies</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public abstract TList<ParkingTarget> GetByNodeIdSsc(TransactionManager transactionManager, System.Int32? _nodeIdSsc, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_PLACEMENT_TYPES key.
		///		FK_PARKING_TARGETS_PLACEMENT_TYPES Description: 
		/// </summary>
		/// <param name="_placementPossibility">Determines if the parking area is controllable. Foreign key to PLACEMENT_TYPES</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByPlacementPossibility(System.String _placementPossibility)
		{
			int count = -1;
			return GetByPlacementPossibility(_placementPossibility, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_PLACEMENT_TYPES key.
		///		FK_PARKING_TARGETS_PLACEMENT_TYPES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_placementPossibility">Determines if the parking area is controllable. Foreign key to PLACEMENT_TYPES</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		/// <remarks></remarks>
		public TList<ParkingTarget> GetByPlacementPossibility(TransactionManager transactionManager, System.String _placementPossibility)
		{
			int count = -1;
			return GetByPlacementPossibility(transactionManager, _placementPossibility, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_PLACEMENT_TYPES key.
		///		FK_PARKING_TARGETS_PLACEMENT_TYPES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_placementPossibility">Determines if the parking area is controllable. Foreign key to PLACEMENT_TYPES</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByPlacementPossibility(TransactionManager transactionManager, System.String _placementPossibility, int start, int pageLength)
		{
			int count = -1;
			return GetByPlacementPossibility(transactionManager, _placementPossibility, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_PLACEMENT_TYPES key.
		///		fkParkingTargetsPlacementTypes Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_placementPossibility">Determines if the parking area is controllable. Foreign key to PLACEMENT_TYPES</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByPlacementPossibility(System.String _placementPossibility, int start, int pageLength)
		{
			int count =  -1;
			return GetByPlacementPossibility(null, _placementPossibility, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_PLACEMENT_TYPES key.
		///		fkParkingTargetsPlacementTypes Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_placementPossibility">Determines if the parking area is controllable. Foreign key to PLACEMENT_TYPES</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByPlacementPossibility(System.String _placementPossibility, int start, int pageLength,out int count)
		{
			return GetByPlacementPossibility(null, _placementPossibility, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_PLACEMENT_TYPES key.
		///		FK_PARKING_TARGETS_PLACEMENT_TYPES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_placementPossibility">Determines if the parking area is controllable. Foreign key to PLACEMENT_TYPES</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public abstract TList<ParkingTarget> GetByPlacementPossibility(TransactionManager transactionManager, System.String _placementPossibility, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_STATUSES key.
		///		FK_PARKING_TARGETS_STATUSES Description: 
		/// </summary>
		/// <param name="_status">Status of record, in terms of usability for further analysis and general state of data</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByStatus(System.String _status)
		{
			int count = -1;
			return GetByStatus(_status, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_STATUSES key.
		///		FK_PARKING_TARGETS_STATUSES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_status">Status of record, in terms of usability for further analysis and general state of data</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		/// <remarks></remarks>
		public TList<ParkingTarget> GetByStatus(TransactionManager transactionManager, System.String _status)
		{
			int count = -1;
			return GetByStatus(transactionManager, _status, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_STATUSES key.
		///		FK_PARKING_TARGETS_STATUSES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_status">Status of record, in terms of usability for further analysis and general state of data</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByStatus(TransactionManager transactionManager, System.String _status, int start, int pageLength)
		{
			int count = -1;
			return GetByStatus(transactionManager, _status, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_STATUSES key.
		///		fkParkingTargetsStatuses Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_status">Status of record, in terms of usability for further analysis and general state of data</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByStatus(System.String _status, int start, int pageLength)
		{
			int count =  -1;
			return GetByStatus(null, _status, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_STATUSES key.
		///		fkParkingTargetsStatuses Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_status">Status of record, in terms of usability for further analysis and general state of data</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public TList<ParkingTarget> GetByStatus(System.String _status, int start, int pageLength,out int count)
		{
			return GetByStatus(null, _status, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PARKING_TARGETS_STATUSES key.
		///		FK_PARKING_TARGETS_STATUSES Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_status">Status of record, in terms of usability for further analysis and general state of data</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of BesAsm.MasterData.Entities.ParkingTarget objects.</returns>
		public abstract TList<ParkingTarget> GetByStatus(TransactionManager transactionManager, System.String _status, int start, int pageLength, out int count);
		
		#endregion

		#region Get By Index Functions
		
		/// <summary>
		/// 	Gets a row from the DataSource based on its primary key.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to retrieve.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <returns>Returns an instance of the Entity class.</returns>
		public override BesAsm.MasterData.Entities.ParkingTarget Get(TransactionManager transactionManager, BesAsm.MasterData.Entities.ParkingTargetKey key, int start, int pageLength)
		{
			return GetByParkingTargetId(transactionManager, key.ParkingTargetId, start, pageLength);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key PK_PARKING_TARGETS index.
		/// </summary>
		/// <param name="_parkingTargetId">Primary key. Parking target ID</param>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public BesAsm.MasterData.Entities.ParkingTarget GetByParkingTargetId(System.Int32 _parkingTargetId)
		{
			int count = -1;
			return GetByParkingTargetId(null,_parkingTargetId, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_PARKING_TARGETS index.
		/// </summary>
		/// <param name="_parkingTargetId">Primary key. Parking target ID</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public BesAsm.MasterData.Entities.ParkingTarget GetByParkingTargetId(System.Int32 _parkingTargetId, int start, int pageLength)
		{
			int count = -1;
			return GetByParkingTargetId(null, _parkingTargetId, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_PARKING_TARGETS index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_parkingTargetId">Primary key. Parking target ID</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public BesAsm.MasterData.Entities.ParkingTarget GetByParkingTargetId(TransactionManager transactionManager, System.Int32 _parkingTargetId)
		{
			int count = -1;
			return GetByParkingTargetId(transactionManager, _parkingTargetId, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_PARKING_TARGETS index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_parkingTargetId">Primary key. Parking target ID</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public BesAsm.MasterData.Entities.ParkingTarget GetByParkingTargetId(TransactionManager transactionManager, System.Int32 _parkingTargetId, int start, int pageLength)
		{
			int count = -1;
			return GetByParkingTargetId(transactionManager, _parkingTargetId, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_PARKING_TARGETS index.
		/// </summary>
		/// <param name="_parkingTargetId">Primary key. Parking target ID</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public BesAsm.MasterData.Entities.ParkingTarget GetByParkingTargetId(System.Int32 _parkingTargetId, int start, int pageLength, out int count)
		{
			return GetByParkingTargetId(null, _parkingTargetId, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_PARKING_TARGETS index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_parkingTargetId">Primary key. Parking target ID</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public abstract BesAsm.MasterData.Entities.ParkingTarget GetByParkingTargetId(TransactionManager transactionManager, System.Int32 _parkingTargetId, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key R140_ROWID_SDE_UK index.
		/// </summary>
		/// <param name="_objectid"></param>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public BesAsm.MasterData.Entities.ParkingTarget GetByObjectid(System.Int32 _objectid)
		{
			int count = -1;
			return GetByObjectid(null,_objectid, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the R140_ROWID_SDE_UK index.
		/// </summary>
		/// <param name="_objectid"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public BesAsm.MasterData.Entities.ParkingTarget GetByObjectid(System.Int32 _objectid, int start, int pageLength)
		{
			int count = -1;
			return GetByObjectid(null, _objectid, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the R140_ROWID_SDE_UK index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_objectid"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public BesAsm.MasterData.Entities.ParkingTarget GetByObjectid(TransactionManager transactionManager, System.Int32 _objectid)
		{
			int count = -1;
			return GetByObjectid(transactionManager, _objectid, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the R140_ROWID_SDE_UK index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_objectid"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public BesAsm.MasterData.Entities.ParkingTarget GetByObjectid(TransactionManager transactionManager, System.Int32 _objectid, int start, int pageLength)
		{
			int count = -1;
			return GetByObjectid(transactionManager, _objectid, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the R140_ROWID_SDE_UK index.
		/// </summary>
		/// <param name="_objectid"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public BesAsm.MasterData.Entities.ParkingTarget GetByObjectid(System.Int32 _objectid, int start, int pageLength, out int count)
		{
			return GetByObjectid(null, _objectid, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the R140_ROWID_SDE_UK index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_objectid"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> class.</returns>
		public abstract BesAsm.MasterData.Entities.ParkingTarget GetByObjectid(TransactionManager transactionManager, System.Int32 _objectid, int start, int pageLength, out int count);
						
		#endregion "Get By Index Functions"
	
		#region Custom Methods
		
		
		#region USP_PARKING_TARGETS_SELECT_OIDS_BY_NODE_IDS 
		
		/// <summary>
		///	This method wrap the 'USP_PARKING_TARGETS_SELECT_OIDS_BY_NODE_IDS' stored procedure. 
		/// </summary>
		/// <param name="idTable"> A <c>System.Object</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public DataSet SelectOidsByNodeIds(System.Object idTable)
		{
			return SelectOidsByNodeIds(null, 0, int.MaxValue , idTable);
		}
		
		/// <summary>
		///	This method wrap the 'USP_PARKING_TARGETS_SELECT_OIDS_BY_NODE_IDS' stored procedure. 
		/// </summary>
		/// <param name="idTable"> A <c>System.Object</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public DataSet SelectOidsByNodeIds(int start, int pageLength, System.Object idTable)
		{
			return SelectOidsByNodeIds(null, start, pageLength , idTable);
		}
				
		/// <summary>
		///	This method wrap the 'USP_PARKING_TARGETS_SELECT_OIDS_BY_NODE_IDS' stored procedure. 
		/// </summary>
		/// <param name="idTable"> A <c>System.Object</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public DataSet SelectOidsByNodeIds(TransactionManager transactionManager, System.Object idTable)
		{
			return SelectOidsByNodeIds(transactionManager, 0, int.MaxValue , idTable);
		}
		
		/// <summary>
		///	This method wrap the 'USP_PARKING_TARGETS_SELECT_OIDS_BY_NODE_IDS' stored procedure. 
		/// </summary>
		/// <param name="idTable"> A <c>System.Object</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="DataSet"/> instance.</returns>
		public abstract DataSet SelectOidsByNodeIds(TransactionManager transactionManager, int start, int pageLength , System.Object idTable);
		
		#endregion
		
		#region USP_PARKING_TARGETS_SELECT_BY_OIDS 
		
		/// <summary>
		///	This method wrap the 'USP_PARKING_TARGETS_SELECT_BY_OIDS' stored procedure. 
		/// </summary>
		/// <param name="idTable"> A <c>System.Object</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;ParkingTarget&gt;"/> instance.</returns>
		public TList<ParkingTarget> SelectByOids(System.Object idTable)
		{
			return SelectByOids(null, 0, int.MaxValue , idTable);
		}
		
		/// <summary>
		///	This method wrap the 'USP_PARKING_TARGETS_SELECT_BY_OIDS' stored procedure. 
		/// </summary>
		/// <param name="idTable"> A <c>System.Object</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;ParkingTarget&gt;"/> instance.</returns>
		public TList<ParkingTarget> SelectByOids(int start, int pageLength, System.Object idTable)
		{
			return SelectByOids(null, start, pageLength , idTable);
		}
				
		/// <summary>
		///	This method wrap the 'USP_PARKING_TARGETS_SELECT_BY_OIDS' stored procedure. 
		/// </summary>
		/// <param name="idTable"> A <c>System.Object</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;ParkingTarget&gt;"/> instance.</returns>
		public TList<ParkingTarget> SelectByOids(TransactionManager transactionManager, System.Object idTable)
		{
			return SelectByOids(transactionManager, 0, int.MaxValue , idTable);
		}
		
		/// <summary>
		///	This method wrap the 'USP_PARKING_TARGETS_SELECT_BY_OIDS' stored procedure. 
		/// </summary>
		/// <param name="idTable"> A <c>System.Object</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;ParkingTarget&gt;"/> instance.</returns>
		public abstract TList<ParkingTarget> SelectByOids(TransactionManager transactionManager, int start, int pageLength , System.Object idTable);
		
		#endregion
		
		#endregion

		#region Helper Functions	
		
		/// <summary>
		/// Fill a TList&lt;ParkingTarget&gt; From a DataReader.
		/// </summary>
		/// <param name="reader">Datareader</param>
		/// <param name="rows">The collection to fill</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">number of rows.</param>
		/// <returns>a <see cref="TList&lt;ParkingTarget&gt;"/></returns>
		public static TList<ParkingTarget> Fill(IDataReader reader, TList<ParkingTarget> rows, int start, int pageLength)
		{
			NetTiersProvider currentProvider = DataRepository.Provider;
            bool useEntityFactory = currentProvider.UseEntityFactory;
            bool enableEntityTracking = currentProvider.EnableEntityTracking;
            LoadPolicy currentLoadPolicy = currentProvider.CurrentLoadPolicy;
			Type entityCreationFactoryType = currentProvider.EntityCreationalFactoryType;
			
			// advance to the starting row
			for (int i = 0; i < start; i++)
			{
				if (!reader.Read())
				return rows; // not enough rows, just return
			}
			for (int i = 0; i < pageLength; i++)
			{
				if (!reader.Read())
					break; // we are done
					
				string key = null;
				
				BesAsm.MasterData.Entities.ParkingTarget c = null;
				if (useEntityFactory)
				{
					key = new System.Text.StringBuilder("ParkingTarget")
					.Append("|").Append((System.Int32)reader[((int)ParkingTargetColumn.ParkingTargetId - 1)]).ToString();
					c = EntityManager.LocateOrCreate<ParkingTarget>(
					key.ToString(), // EntityTrackingKey
					"ParkingTarget",  //Creational Type
					entityCreationFactoryType,  //Factory used to create entity
					enableEntityTracking); // Track this entity?
				}
				else
				{
					c = new BesAsm.MasterData.Entities.ParkingTarget();
				}
				
				if (!enableEntityTracking ||
					c.EntityState == EntityState.Added ||
					(enableEntityTracking &&
					
						(
							(currentLoadPolicy == LoadPolicy.PreserveChanges && c.EntityState == EntityState.Unchanged) ||
							(currentLoadPolicy == LoadPolicy.DiscardChanges && c.EntityState != EntityState.Unchanged)
						)
					))
				{
					c.SuppressEntityEvents = true;
					c.Objectid = (System.Int32)reader[((int)ParkingTargetColumn.Objectid - 1)];
					c.Difficulty = (reader.IsDBNull(((int)ParkingTargetColumn.Difficulty - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.Difficulty - 1)];
					c.ParkingEffDisc = (reader.IsDBNull(((int)ParkingTargetColumn.ParkingEffDisc - 1)))?null:(System.Decimal?)reader[((int)ParkingTargetColumn.ParkingEffDisc - 1)];
					c.Comments = (reader.IsDBNull(((int)ParkingTargetColumn.Comments - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.Comments - 1)];
					c.FractionToDrywell = (reader.IsDBNull(((int)ParkingTargetColumn.FractionToDrywell - 1)))?null:(System.Decimal?)reader[((int)ParkingTargetColumn.FractionToDrywell - 1)];
					c.BuildIcForModel = (reader.IsDBNull(((int)ParkingTargetColumn.BuildIcForModel - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.BuildIcForModel - 1)];
					c.Source = (reader.IsDBNull(((int)ParkingTargetColumn.Source - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.Source - 1)];
					c.AppendDate = (System.DateTime)reader[((int)ParkingTargetColumn.AppendDate - 1)];
					c.ConstructedStatus = (reader.IsDBNull(((int)ParkingTargetColumn.ConstructedStatus - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.ConstructedStatus - 1)];
					c.ParkingTargetId = (System.Int32)reader[((int)ParkingTargetColumn.ParkingTargetId - 1)];
					c.OriginalParkingTargetId = c.ParkingTargetId;
					c.ModelAltParkingTargetId = (reader.IsDBNull(((int)ParkingTargetColumn.ModelAltParkingTargetId - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.ModelAltParkingTargetId - 1)];
					c.ParcelId = (reader.IsDBNull(((int)ParkingTargetColumn.ParcelId - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.ParcelId - 1)];
					c.DivideId = (reader.IsDBNull(((int)ParkingTargetColumn.DivideId - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.DivideId - 1)];
					c.DscId = (reader.IsDBNull(((int)ParkingTargetColumn.DscId - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.DscId - 1)];
					c.AreaUnderInflowControlEx = (reader.IsDBNull(((int)ParkingTargetColumn.AreaUnderInflowControlEx - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.AreaUnderInflowControlEx - 1)];
					c.ParkingAreaEx = (reader.IsDBNull(((int)ParkingTargetColumn.ParkingAreaEx - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.ParkingAreaEx - 1)];
					c.TargetArea = (reader.IsDBNull(((int)ParkingTargetColumn.TargetArea - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.TargetArea - 1)];
					c.NodeidDscDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.NodeidDscDeprecated - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.NodeidDscDeprecated - 1)];
					c.NodeidSscDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.NodeidSscDeprecated - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.NodeidSscDeprecated - 1)];
					c.NodeidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.NodeidDeprecated - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.NodeidDeprecated - 1)];
					c.FieldEvaluated = (reader.IsDBNull(((int)ParkingTargetColumn.FieldEvaluated - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.FieldEvaluated - 1)];
					c.HasInlets = (reader.IsDBNull(((int)ParkingTargetColumn.HasInlets - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.HasInlets - 1)];
					c.NumParkingSpaces = (reader.IsDBNull(((int)ParkingTargetColumn.NumParkingSpaces - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.NumParkingSpaces - 1)];
					c.ObservedParkingUsagePct = (reader.IsDBNull(((int)ParkingTargetColumn.ObservedParkingUsagePct - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.ObservedParkingUsagePct - 1)];
					c.DrainagePatternType = (reader.IsDBNull(((int)ParkingTargetColumn.DrainagePatternType - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.DrainagePatternType - 1)];
					c.NodeId2 = (reader.IsDBNull(((int)ParkingTargetColumn.NodeId2 - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.NodeId2 - 1)];
					c.PlacementPossibility = (reader.IsDBNull(((int)ParkingTargetColumn.PlacementPossibility - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.PlacementPossibility - 1)];
					c.FractionControllable = (reader.IsDBNull(((int)ParkingTargetColumn.FractionControllable - 1)))?null:(System.Decimal?)reader[((int)ParkingTargetColumn.FractionControllable - 1)];
					c.NodeIdDsc = (reader.IsDBNull(((int)ParkingTargetColumn.NodeIdDsc - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.NodeIdDsc - 1)];
					c.NodeIdSsc = (reader.IsDBNull(((int)ParkingTargetColumn.NodeIdSsc - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.NodeIdSsc - 1)];
					c.NodeId = (reader.IsDBNull(((int)ParkingTargetColumn.NodeId - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.NodeId - 1)];
					c.EditedBy = (System.String)reader[((int)ParkingTargetColumn.EditedBy - 1)];
					c.EditReason = (System.String)reader[((int)ParkingTargetColumn.EditReason - 1)];
					c.Status = (System.String)reader[((int)ParkingTargetColumn.Status - 1)];
					c.EditDate = (reader.IsDBNull(((int)ParkingTargetColumn.EditDate - 1)))?null:(System.DateTime?)reader[((int)ParkingTargetColumn.EditDate - 1)];
					c.IcidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.IcidDeprecated - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.IcidDeprecated - 1)];
					c.PicidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.PicidDeprecated - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.PicidDeprecated - 1)];
					c.ParcelidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.ParcelidDeprecated - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.ParcelidDeprecated - 1)];
					c.DivideidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.DivideidDeprecated - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.DivideidDeprecated - 1)];
					c.DscidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.DscidDeprecated - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.DscidDeprecated - 1)];
					c.Shape = (reader.IsDBNull(((int)ParkingTargetColumn.Shape - 1)))?null:(System.Object)reader[((int)ParkingTargetColumn.Shape - 1)];
					c.EntityTrackingKey = key;
					c.AcceptChanges();
					c.SuppressEntityEvents = false;
				}
				rows.Add(c);
			}
		return rows;
		}		
		/// <summary>
		/// Refreshes the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> object from the <see cref="IDataReader"/>.
		/// </summary>
		/// <param name="reader">The <see cref="IDataReader"/> to read from.</param>
		/// <param name="entity">The <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> object to refresh.</param>
		public static void RefreshEntity(IDataReader reader, BesAsm.MasterData.Entities.ParkingTarget entity)
		{
			if (!reader.Read()) return;
			
			entity.Objectid = (System.Int32)reader[((int)ParkingTargetColumn.Objectid - 1)];
			entity.Difficulty = (reader.IsDBNull(((int)ParkingTargetColumn.Difficulty - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.Difficulty - 1)];
			entity.ParkingEffDisc = (reader.IsDBNull(((int)ParkingTargetColumn.ParkingEffDisc - 1)))?null:(System.Decimal?)reader[((int)ParkingTargetColumn.ParkingEffDisc - 1)];
			entity.Comments = (reader.IsDBNull(((int)ParkingTargetColumn.Comments - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.Comments - 1)];
			entity.FractionToDrywell = (reader.IsDBNull(((int)ParkingTargetColumn.FractionToDrywell - 1)))?null:(System.Decimal?)reader[((int)ParkingTargetColumn.FractionToDrywell - 1)];
			entity.BuildIcForModel = (reader.IsDBNull(((int)ParkingTargetColumn.BuildIcForModel - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.BuildIcForModel - 1)];
			entity.Source = (reader.IsDBNull(((int)ParkingTargetColumn.Source - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.Source - 1)];
			entity.AppendDate = (System.DateTime)reader[((int)ParkingTargetColumn.AppendDate - 1)];
			entity.ConstructedStatus = (reader.IsDBNull(((int)ParkingTargetColumn.ConstructedStatus - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.ConstructedStatus - 1)];
			entity.ParkingTargetId = (System.Int32)reader[((int)ParkingTargetColumn.ParkingTargetId - 1)];
			entity.OriginalParkingTargetId = (System.Int32)reader["parking_target_id"];
			entity.ModelAltParkingTargetId = (reader.IsDBNull(((int)ParkingTargetColumn.ModelAltParkingTargetId - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.ModelAltParkingTargetId - 1)];
			entity.ParcelId = (reader.IsDBNull(((int)ParkingTargetColumn.ParcelId - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.ParcelId - 1)];
			entity.DivideId = (reader.IsDBNull(((int)ParkingTargetColumn.DivideId - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.DivideId - 1)];
			entity.DscId = (reader.IsDBNull(((int)ParkingTargetColumn.DscId - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.DscId - 1)];
			entity.AreaUnderInflowControlEx = (reader.IsDBNull(((int)ParkingTargetColumn.AreaUnderInflowControlEx - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.AreaUnderInflowControlEx - 1)];
			entity.ParkingAreaEx = (reader.IsDBNull(((int)ParkingTargetColumn.ParkingAreaEx - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.ParkingAreaEx - 1)];
			entity.TargetArea = (reader.IsDBNull(((int)ParkingTargetColumn.TargetArea - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.TargetArea - 1)];
			entity.NodeidDscDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.NodeidDscDeprecated - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.NodeidDscDeprecated - 1)];
			entity.NodeidSscDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.NodeidSscDeprecated - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.NodeidSscDeprecated - 1)];
			entity.NodeidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.NodeidDeprecated - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.NodeidDeprecated - 1)];
			entity.FieldEvaluated = (reader.IsDBNull(((int)ParkingTargetColumn.FieldEvaluated - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.FieldEvaluated - 1)];
			entity.HasInlets = (reader.IsDBNull(((int)ParkingTargetColumn.HasInlets - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.HasInlets - 1)];
			entity.NumParkingSpaces = (reader.IsDBNull(((int)ParkingTargetColumn.NumParkingSpaces - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.NumParkingSpaces - 1)];
			entity.ObservedParkingUsagePct = (reader.IsDBNull(((int)ParkingTargetColumn.ObservedParkingUsagePct - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.ObservedParkingUsagePct - 1)];
			entity.DrainagePatternType = (reader.IsDBNull(((int)ParkingTargetColumn.DrainagePatternType - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.DrainagePatternType - 1)];
			entity.NodeId2 = (reader.IsDBNull(((int)ParkingTargetColumn.NodeId2 - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.NodeId2 - 1)];
			entity.PlacementPossibility = (reader.IsDBNull(((int)ParkingTargetColumn.PlacementPossibility - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.PlacementPossibility - 1)];
			entity.FractionControllable = (reader.IsDBNull(((int)ParkingTargetColumn.FractionControllable - 1)))?null:(System.Decimal?)reader[((int)ParkingTargetColumn.FractionControllable - 1)];
			entity.NodeIdDsc = (reader.IsDBNull(((int)ParkingTargetColumn.NodeIdDsc - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.NodeIdDsc - 1)];
			entity.NodeIdSsc = (reader.IsDBNull(((int)ParkingTargetColumn.NodeIdSsc - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.NodeIdSsc - 1)];
			entity.NodeId = (reader.IsDBNull(((int)ParkingTargetColumn.NodeId - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.NodeId - 1)];
			entity.EditedBy = (System.String)reader[((int)ParkingTargetColumn.EditedBy - 1)];
			entity.EditReason = (System.String)reader[((int)ParkingTargetColumn.EditReason - 1)];
			entity.Status = (System.String)reader[((int)ParkingTargetColumn.Status - 1)];
			entity.EditDate = (reader.IsDBNull(((int)ParkingTargetColumn.EditDate - 1)))?null:(System.DateTime?)reader[((int)ParkingTargetColumn.EditDate - 1)];
			entity.IcidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.IcidDeprecated - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.IcidDeprecated - 1)];
			entity.PicidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.PicidDeprecated - 1)))?null:(System.String)reader[((int)ParkingTargetColumn.PicidDeprecated - 1)];
			entity.ParcelidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.ParcelidDeprecated - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.ParcelidDeprecated - 1)];
			entity.DivideidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.DivideidDeprecated - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.DivideidDeprecated - 1)];
			entity.DscidDeprecated = (reader.IsDBNull(((int)ParkingTargetColumn.DscidDeprecated - 1)))?null:(System.Int32?)reader[((int)ParkingTargetColumn.DscidDeprecated - 1)];
			entity.Shape = (reader.IsDBNull(((int)ParkingTargetColumn.Shape - 1)))?null:(System.Object)reader[((int)ParkingTargetColumn.Shape - 1)];
			entity.AcceptChanges();
		}
		
		/// <summary>
		/// Refreshes the <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> object from the <see cref="DataSet"/>.
		/// </summary>
		/// <param name="dataSet">The <see cref="DataSet"/> to read from.</param>
		/// <param name="entity">The <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> object.</param>
		public static void RefreshEntity(DataSet dataSet, BesAsm.MasterData.Entities.ParkingTarget entity)
		{
			DataRow dataRow = dataSet.Tables[0].Rows[0];
			
			entity.Objectid = (System.Int32)dataRow["OBJECTID"];
			entity.Difficulty = Convert.IsDBNull(dataRow["difficulty"]) ? null : (System.Int32?)dataRow["difficulty"];
			entity.ParkingEffDisc = Convert.IsDBNull(dataRow["parking_eff_disc"]) ? null : (System.Decimal?)dataRow["parking_eff_disc"];
			entity.Comments = Convert.IsDBNull(dataRow["comments"]) ? null : (System.String)dataRow["comments"];
			entity.FractionToDrywell = Convert.IsDBNull(dataRow["fraction_to_drywell"]) ? null : (System.Decimal?)dataRow["fraction_to_drywell"];
			entity.BuildIcForModel = Convert.IsDBNull(dataRow["build_ic_for_model"]) ? null : (System.Int32?)dataRow["build_ic_for_model"];
			entity.Source = Convert.IsDBNull(dataRow["source"]) ? null : (System.String)dataRow["source"];
			entity.AppendDate = (System.DateTime)dataRow["append_date"];
			entity.ConstructedStatus = Convert.IsDBNull(dataRow["constructed_status"]) ? null : (System.Int32?)dataRow["constructed_status"];
			entity.ParkingTargetId = (System.Int32)dataRow["parking_target_id"];
			entity.OriginalParkingTargetId = (System.Int32)dataRow["parking_target_id"];
			entity.ModelAltParkingTargetId = Convert.IsDBNull(dataRow["model_alt_parking_target_id"]) ? null : (System.String)dataRow["model_alt_parking_target_id"];
			entity.ParcelId = Convert.IsDBNull(dataRow["parcel_id"]) ? null : (System.Int32?)dataRow["parcel_id"];
			entity.DivideId = Convert.IsDBNull(dataRow["divide_id"]) ? null : (System.Int32?)dataRow["divide_id"];
			entity.DscId = Convert.IsDBNull(dataRow["dsc_id"]) ? null : (System.Int32?)dataRow["dsc_id"];
			entity.AreaUnderInflowControlEx = Convert.IsDBNull(dataRow["area_under_inflow_control_ex"]) ? null : (System.Int32?)dataRow["area_under_inflow_control_ex"];
			entity.ParkingAreaEx = Convert.IsDBNull(dataRow["parking_area_ex"]) ? null : (System.Int32?)dataRow["parking_area_ex"];
			entity.TargetArea = Convert.IsDBNull(dataRow["target_area"]) ? null : (System.Int32?)dataRow["target_area"];
			entity.NodeidDscDeprecated = Convert.IsDBNull(dataRow["nodeid_dsc_deprecated"]) ? null : (System.String)dataRow["nodeid_dsc_deprecated"];
			entity.NodeidSscDeprecated = Convert.IsDBNull(dataRow["nodeid_ssc_deprecated"]) ? null : (System.String)dataRow["nodeid_ssc_deprecated"];
			entity.NodeidDeprecated = Convert.IsDBNull(dataRow["nodeid_deprecated"]) ? null : (System.String)dataRow["nodeid_deprecated"];
			entity.FieldEvaluated = Convert.IsDBNull(dataRow["field_evaluated"]) ? null : (System.Int32?)dataRow["field_evaluated"];
			entity.HasInlets = Convert.IsDBNull(dataRow["has_inlets"]) ? null : (System.Int32?)dataRow["has_inlets"];
			entity.NumParkingSpaces = Convert.IsDBNull(dataRow["num_parking_spaces"]) ? null : (System.Int32?)dataRow["num_parking_spaces"];
			entity.ObservedParkingUsagePct = Convert.IsDBNull(dataRow["observed_parking_usage_pct"]) ? null : (System.Int32?)dataRow["observed_parking_usage_pct"];
			entity.DrainagePatternType = Convert.IsDBNull(dataRow["drainage_pattern_type"]) ? null : (System.String)dataRow["drainage_pattern_type"];
			entity.NodeId2 = Convert.IsDBNull(dataRow["node_id_2"]) ? null : (System.String)dataRow["node_id_2"];
			entity.PlacementPossibility = Convert.IsDBNull(dataRow["placement_possibility"]) ? null : (System.String)dataRow["placement_possibility"];
			entity.FractionControllable = Convert.IsDBNull(dataRow["fraction_controllable"]) ? null : (System.Decimal?)dataRow["fraction_controllable"];
			entity.NodeIdDsc = Convert.IsDBNull(dataRow["node_id_dsc"]) ? null : (System.Int32?)dataRow["node_id_dsc"];
			entity.NodeIdSsc = Convert.IsDBNull(dataRow["node_id_ssc"]) ? null : (System.Int32?)dataRow["node_id_ssc"];
			entity.NodeId = Convert.IsDBNull(dataRow["node_id"]) ? null : (System.Int32?)dataRow["node_id"];
			entity.EditedBy = (System.String)dataRow["edited_by"];
			entity.EditReason = (System.String)dataRow["edit_reason"];
			entity.Status = (System.String)dataRow["status"];
			entity.EditDate = Convert.IsDBNull(dataRow["edit_date"]) ? null : (System.DateTime?)dataRow["edit_date"];
			entity.IcidDeprecated = Convert.IsDBNull(dataRow["icid_deprecated"]) ? null : (System.Int32?)dataRow["icid_deprecated"];
			entity.PicidDeprecated = Convert.IsDBNull(dataRow["picid_deprecated"]) ? null : (System.String)dataRow["picid_deprecated"];
			entity.ParcelidDeprecated = Convert.IsDBNull(dataRow["parcelid_deprecated"]) ? null : (System.Int32?)dataRow["parcelid_deprecated"];
			entity.DivideidDeprecated = Convert.IsDBNull(dataRow["divideid_deprecated"]) ? null : (System.Int32?)dataRow["divideid_deprecated"];
			entity.DscidDeprecated = Convert.IsDBNull(dataRow["dscid_deprecated"]) ? null : (System.Int32?)dataRow["dscid_deprecated"];
			entity.Shape = Convert.IsDBNull(dataRow["SHAPE"]) ? null : (System.Object)dataRow["SHAPE"];
			entity.AcceptChanges();
		}
		#endregion 
		
		#region DeepLoad Methods
		/// <summary>
		/// Deep Loads the <see cref="IEntity"/> object with criteria based of the child 
		/// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
		/// </summary>
		/// <remarks>
		/// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
		/// </remarks>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="entity">The <see cref="BesAsm.MasterData.Entities.ParkingTarget"/> object to load.</param>
		/// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
		/// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
		/// <param name="childTypes">BesAsm.MasterData.Entities.ParkingTarget Property Collection Type Array To Include or Exclude from Load</param>
		/// <param name="innerList">A collection of child types for easy access.</param>
	    /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
	    /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
		public override void DeepLoad(TransactionManager transactionManager, BesAsm.MasterData.Entities.ParkingTarget entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
		{
			if(entity == null)
				return;

			#region DscIdSource	
			if (CanDeepLoad(entity, "Dsc|DscIdSource", deepLoadType, innerList) 
				&& entity.DscIdSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.DscId ?? (int)0);
				Dsc tmpEntity = EntityManager.LocateEntity<Dsc>(EntityLocator.ConstructKeyFromPkItems(typeof(Dsc), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.DscIdSource = tmpEntity;
				else
					entity.DscIdSource = DataRepository.DscProvider.GetByDscId(transactionManager, (entity.DscId ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DscIdSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.DscIdSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.DscProvider.DeepLoad(transactionManager, entity.DscIdSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion DscIdSource

			#region ConstructedStatusSource	
			if (CanDeepLoad(entity, "IcTargetConstructedStatus|ConstructedStatusSource", deepLoadType, innerList) 
				&& entity.ConstructedStatusSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.ConstructedStatus ?? (int)0);
				IcTargetConstructedStatus tmpEntity = EntityManager.LocateEntity<IcTargetConstructedStatus>(EntityLocator.ConstructKeyFromPkItems(typeof(IcTargetConstructedStatus), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.ConstructedStatusSource = tmpEntity;
				else
					entity.ConstructedStatusSource = DataRepository.IcTargetConstructedStatusProvider.GetByIcTargetConstructedStatusId(transactionManager, (entity.ConstructedStatus ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'ConstructedStatusSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.ConstructedStatusSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.IcTargetConstructedStatusProvider.DeepLoad(transactionManager, entity.ConstructedStatusSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion ConstructedStatusSource

			#region DifficultySource	
			if (CanDeepLoad(entity, "IcTargetDifficulty|DifficultySource", deepLoadType, innerList) 
				&& entity.DifficultySource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.Difficulty ?? (int)0);
				IcTargetDifficulty tmpEntity = EntityManager.LocateEntity<IcTargetDifficulty>(EntityLocator.ConstructKeyFromPkItems(typeof(IcTargetDifficulty), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.DifficultySource = tmpEntity;
				else
					entity.DifficultySource = DataRepository.IcTargetDifficultyProvider.GetByIcTargetDifficultyId(transactionManager, (entity.Difficulty ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DifficultySource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.DifficultySource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.IcTargetDifficultyProvider.DeepLoad(transactionManager, entity.DifficultySource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion DifficultySource

			#region NodeIdSource	
			if (CanDeepLoad(entity, "Node|NodeIdSource", deepLoadType, innerList) 
				&& entity.NodeIdSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.NodeId ?? (int)0);
				Node tmpEntity = EntityManager.LocateEntity<Node>(EntityLocator.ConstructKeyFromPkItems(typeof(Node), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.NodeIdSource = tmpEntity;
				else
					entity.NodeIdSource = DataRepository.NodeProvider.GetByNodeId(transactionManager, (entity.NodeId ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'NodeIdSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.NodeIdSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.NodeProvider.DeepLoad(transactionManager, entity.NodeIdSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion NodeIdSource

			#region NodeIdDscSource	
			if (CanDeepLoad(entity, "Node|NodeIdDscSource", deepLoadType, innerList) 
				&& entity.NodeIdDscSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.NodeIdDsc ?? (int)0);
				Node tmpEntity = EntityManager.LocateEntity<Node>(EntityLocator.ConstructKeyFromPkItems(typeof(Node), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.NodeIdDscSource = tmpEntity;
				else
					entity.NodeIdDscSource = DataRepository.NodeProvider.GetByNodeId(transactionManager, (entity.NodeIdDsc ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'NodeIdDscSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.NodeIdDscSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.NodeProvider.DeepLoad(transactionManager, entity.NodeIdDscSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion NodeIdDscSource

			#region NodeIdSscSource	
			if (CanDeepLoad(entity, "Node|NodeIdSscSource", deepLoadType, innerList) 
				&& entity.NodeIdSscSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.NodeIdSsc ?? (int)0);
				Node tmpEntity = EntityManager.LocateEntity<Node>(EntityLocator.ConstructKeyFromPkItems(typeof(Node), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.NodeIdSscSource = tmpEntity;
				else
					entity.NodeIdSscSource = DataRepository.NodeProvider.GetByNodeId(transactionManager, (entity.NodeIdSsc ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'NodeIdSscSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.NodeIdSscSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.NodeProvider.DeepLoad(transactionManager, entity.NodeIdSscSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion NodeIdSscSource

			#region PlacementPossibilitySource	
			if (CanDeepLoad(entity, "PlacementType|PlacementPossibilitySource", deepLoadType, innerList) 
				&& entity.PlacementPossibilitySource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.PlacementPossibility ?? string.Empty);
				PlacementType tmpEntity = EntityManager.LocateEntity<PlacementType>(EntityLocator.ConstructKeyFromPkItems(typeof(PlacementType), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.PlacementPossibilitySource = tmpEntity;
				else
					entity.PlacementPossibilitySource = DataRepository.PlacementTypeProvider.GetByPlacementTypeId(transactionManager, (entity.PlacementPossibility ?? string.Empty));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'PlacementPossibilitySource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.PlacementPossibilitySource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.PlacementTypeProvider.DeepLoad(transactionManager, entity.PlacementPossibilitySource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion PlacementPossibilitySource

			#region StatusSource	
			if (CanDeepLoad(entity, "Status|StatusSource", deepLoadType, innerList) 
				&& entity.StatusSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.Status;
				Status tmpEntity = EntityManager.LocateEntity<Status>(EntityLocator.ConstructKeyFromPkItems(typeof(Status), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.StatusSource = tmpEntity;
				else
					entity.StatusSource = DataRepository.StatusProvider.GetByStatusId(transactionManager, entity.Status);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'StatusSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.StatusSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.StatusProvider.DeepLoad(transactionManager, entity.StatusSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion StatusSource
			
			//used to hold DeepLoad method delegates and fire after all the local children have been loaded.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			
			//Fire all DeepLoad Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			deepHandles = null;
		}
		
		#endregion 
		
		#region DeepSave Methods

		/// <summary>
		/// Deep Save the entire object graph of the BesAsm.MasterData.Entities.ParkingTarget object with criteria based of the child 
		/// Type property array and DeepSaveType.
		/// </summary>
		/// <param name="transactionManager">The transaction manager.</param>
		/// <param name="entity">BesAsm.MasterData.Entities.ParkingTarget instance</param>
		/// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
		/// <param name="childTypes">BesAsm.MasterData.Entities.ParkingTarget Property Collection Type Array To Include or Exclude from Save</param>
		/// <param name="innerList">A Hashtable of child types for easy access.</param>
		public override bool DeepSave(TransactionManager transactionManager, BesAsm.MasterData.Entities.ParkingTarget entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
		{	
			if (entity == null)
				return false;
							
			#region Composite Parent Properties
			//Save Source Composite Properties, however, don't call deep save on them.  
			//So they only get saved a single level deep.
			
			#region DscIdSource
			if (CanDeepSave(entity, "Dsc|DscIdSource", deepSaveType, innerList) 
				&& entity.DscIdSource != null)
			{
				DataRepository.DscProvider.Save(transactionManager, entity.DscIdSource);
				entity.DscId = entity.DscIdSource.DscId;
			}
			#endregion 
			
			#region ConstructedStatusSource
			if (CanDeepSave(entity, "IcTargetConstructedStatus|ConstructedStatusSource", deepSaveType, innerList) 
				&& entity.ConstructedStatusSource != null)
			{
				DataRepository.IcTargetConstructedStatusProvider.Save(transactionManager, entity.ConstructedStatusSource);
				entity.ConstructedStatus = entity.ConstructedStatusSource.IcTargetConstructedStatusId;
			}
			#endregion 
			
			#region DifficultySource
			if (CanDeepSave(entity, "IcTargetDifficulty|DifficultySource", deepSaveType, innerList) 
				&& entity.DifficultySource != null)
			{
				DataRepository.IcTargetDifficultyProvider.Save(transactionManager, entity.DifficultySource);
				entity.Difficulty = entity.DifficultySource.IcTargetDifficultyId;
			}
			#endregion 
			
			#region NodeIdSource
			if (CanDeepSave(entity, "Node|NodeIdSource", deepSaveType, innerList) 
				&& entity.NodeIdSource != null)
			{
				DataRepository.NodeProvider.Save(transactionManager, entity.NodeIdSource);
				entity.NodeId = entity.NodeIdSource.NodeId;
			}
			#endregion 
			
			#region NodeIdDscSource
			if (CanDeepSave(entity, "Node|NodeIdDscSource", deepSaveType, innerList) 
				&& entity.NodeIdDscSource != null)
			{
				DataRepository.NodeProvider.Save(transactionManager, entity.NodeIdDscSource);
				entity.NodeIdDsc = entity.NodeIdDscSource.NodeId;
			}
			#endregion 
			
			#region NodeIdSscSource
			if (CanDeepSave(entity, "Node|NodeIdSscSource", deepSaveType, innerList) 
				&& entity.NodeIdSscSource != null)
			{
				DataRepository.NodeProvider.Save(transactionManager, entity.NodeIdSscSource);
				entity.NodeIdSsc = entity.NodeIdSscSource.NodeId;
			}
			#endregion 
			
			#region PlacementPossibilitySource
			if (CanDeepSave(entity, "PlacementType|PlacementPossibilitySource", deepSaveType, innerList) 
				&& entity.PlacementPossibilitySource != null)
			{
				DataRepository.PlacementTypeProvider.Save(transactionManager, entity.PlacementPossibilitySource);
				entity.PlacementPossibility = entity.PlacementPossibilitySource.PlacementTypeId;
			}
			#endregion 
			
			#region StatusSource
			if (CanDeepSave(entity, "Status|StatusSource", deepSaveType, innerList) 
				&& entity.StatusSource != null)
			{
				DataRepository.StatusProvider.Save(transactionManager, entity.StatusSource);
				entity.Status = entity.StatusSource.StatusId;
			}
			#endregion 
			#endregion Composite Parent Properties

			// Save Root Entity through Provider
			if (!entity.IsDeleted)
				this.Save(transactionManager, entity);
			
			//used to hold DeepSave method delegates and fire after all the local children have been saved.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			//Fire all DeepSave Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			
			// Save Root Entity through Provider, if not already saved in delete mode
			if (entity.IsDeleted)
				this.Save(transactionManager, entity);
				

			deepHandles = null;
						
			return true;
		}
		#endregion
	} // end class
	
	#region ParkingTargetChildEntityTypes
	
	///<summary>
	/// Enumeration used to expose the different child entity types 
	/// for child properties in <c>BesAsm.MasterData.Entities.ParkingTarget</c>
	///</summary>
	public enum ParkingTargetChildEntityTypes
	{
		
		///<summary>
		/// Composite Property for <c>Dsc</c> at DscIdSource
		///</summary>
		[ChildEntityType(typeof(Dsc))]
		Dsc,
			
		///<summary>
		/// Composite Property for <c>IcTargetConstructedStatus</c> at ConstructedStatusSource
		///</summary>
		[ChildEntityType(typeof(IcTargetConstructedStatus))]
		IcTargetConstructedStatus,
			
		///<summary>
		/// Composite Property for <c>IcTargetDifficulty</c> at DifficultySource
		///</summary>
		[ChildEntityType(typeof(IcTargetDifficulty))]
		IcTargetDifficulty,
			
		///<summary>
		/// Composite Property for <c>Node</c> at NodeIdSource
		///</summary>
		[ChildEntityType(typeof(Node))]
		Node,
			
		///<summary>
		/// Composite Property for <c>PlacementType</c> at PlacementPossibilitySource
		///</summary>
		[ChildEntityType(typeof(PlacementType))]
		PlacementType,
			
		///<summary>
		/// Composite Property for <c>Status</c> at StatusSource
		///</summary>
		[ChildEntityType(typeof(Status))]
		Status,
		}
	
	#endregion ParkingTargetChildEntityTypes
	
	#region ParkingTargetFilterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="SqlFilterBuilder&lt;ParkingTargetColumn&gt;"/> class
	/// that is used exclusively with a <see cref="ParkingTarget"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class ParkingTargetFilterBuilder : SqlFilterBuilder<ParkingTargetColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the ParkingTargetFilterBuilder class.
		/// </summary>
		public ParkingTargetFilterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the ParkingTargetFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public ParkingTargetFilterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the ParkingTargetFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public ParkingTargetFilterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion ParkingTargetFilterBuilder
	
	#region ParkingTargetParameterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="ParameterizedSqlFilterBuilder&lt;ParkingTargetColumn&gt;"/> class
	/// that is used exclusively with a <see cref="ParkingTarget"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class ParkingTargetParameterBuilder : ParameterizedSqlFilterBuilder<ParkingTargetColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the ParkingTargetParameterBuilder class.
		/// </summary>
		public ParkingTargetParameterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the ParkingTargetParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public ParkingTargetParameterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the ParkingTargetParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public ParkingTargetParameterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion ParkingTargetParameterBuilder
	
	#region ParkingTargetSortBuilder
    
    /// <summary>
    /// A strongly-typed instance of the <see cref="SqlSortBuilder&lt;ParkingTargetColumn&gt;"/> class
	/// that is used exclusively with a <see cref="ParkingTarget"/> object.
    /// </summary>
    [CLSCompliant(true)]
    public class ParkingTargetSortBuilder : SqlSortBuilder<ParkingTargetColumn>
    {
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the ParkingTargetSqlSortBuilder class.
		/// </summary>
		public ParkingTargetSortBuilder() : base() { }

		#endregion Constructors

    }    
    #endregion ParkingTargetSortBuilder
	
} // end namespace
